package com.lianniu.web.tea.user.eva.service.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lianniu.web.base.BaseResult;
import com.lianniu.web.tea.user.eva.dao.TeaEvaDao;
import com.lianniu.web.tea.user.eva.model.TeaEva;
import com.lianniu.web.tea.user.eva.service.ITeaUserEvaService;

@Service
@Transactional
public class TeaUserEvaServiceImpl implements ITeaUserEvaService {

	private final static Logger logger = Logger.getLogger(TeaUserEvaServiceImpl.class);

	@Autowired
	private TeaEvaDao teaEvaDao;
	
	@Override
	public BaseResult saveEva(TeaEva teaEva) {
		logger.info("TeaUserCommentServiceImpl saveComment start");
		teaEvaDao.insert(teaEva);
		logger.info("TeaUserCommentServiceImpl saveComment end");
		return BaseResult.success(teaEva);
	}

}
